<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        .left {
            width: 200px;
            height: 800px;
            background-color: rgb(66, 64, 64);
            float: left;
            color: white;
        }

        .left .admin {
            width: 100%;
            height: 50px;
            border-bottom: 1px solid white;
            text-align: center;
            line-height: 50px;
        }

        .left .name {
            height: 60px;
            border-bottom: 1px solid white;
            text-align: center;
            line-height: 60px;
        }
        .left .nav {
            list-style: none;
        }
        .left .nav li {
            width: 100%;
            height: 40px;
           text-align: center;
           margin-top: 30px;
           border-bottom: 1px solid rgba(210, 197, 197, 0.849);
        }
        .right {
            width: 1000px;
            height: 800px;
            background-color: rgb(202, 176, 176);
            float: left;
        }
        .right .top {
            width: 1000px;
            height: 50px;
            background-color: pink;
            position: relative;
        }
        .right .top .search1{
            position: absolute;
            left: 415px;
            top: 16px;
        }
        .right .top ul {
            list-style: none;
            height: 50px;
        }

        .one {
            float: left;
        }

        .two {
            float: right;
        }

        .right .top .one li {
            float: left;
            margin-left: 30px;
            line-height: 50px;
        }

        .right .top .one li input {
            padding-left: 10px;
            padding-right: 10px;
            border: none;
            height: 25px;
            border-radius: 5px;
            outline: none;
        }
        .right .top .two li {
            float: left;
            margin-right: 30px;
            line-height: 50px;
        }
        .right h3 {
            font-weight: 400;
            margin-left: 30px;
            margin-top: 20px;
        }
        .right .box2 {
            width: 450px;
            height: 300px;
            background-color: white;
            margin-left: 30px;
            margin-top: 20px;
            float: left;
        }
        .right .data .zuo {
            font-size: 18px;
            float: left;
            margin-left: 25px;
            font-weight: 800;
            margin-top: 20px;
        }

        .right .data .you {
            float: right;
            margin-right: 25px;
            margin-top: 20px;
            font-weight: 800;
        }
        
        .right .data .you span {
            margin-left: 20px;
        }
        
        .right .data .list {
            clear: both;
            padding: 10px 30px;
            width: 100%;
        }
        .right .data .list thead{
            font-weight: 800;
        }
        .right .data .list thead td:nth-child(1){
            width: 30%;
        }
        .right .data .list thead td:nth-child(2){
            width: 20%;
        }
        .right .data .list thead td:nth-child(3){
            width: 30%;
        }
        .right .data .list thead td:nth-child(4){
            width: 20%;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="left">
            <div class="admin">AdminLTE 3</div>
            <div class="name">Alexander Pierce</div>
            <ul class="nav">
                <li>Dashboard</li>
                <li>Widgets</li>
                <li>Charts</li>
                <li>UI Elements</li>
                <li>Forms</li>
                <li>Tables</li>
            </ul>
        </div>
        <div class="right">
            <div class="top">
                <ul class="one">
                    <li>通知</li>
                    <li>Home</li>
                    <li>Contact</li>
                    <li><input type="search" placeholder="Search"></li>
                </ul>
                <div class="search1">🔍</div>
                <ul class="two">
                    <li>通知</li>
                    <li>🔔</li>
                    <li>菜单</li>
                </ul>
            </div>
            <h3>Dashboard v3</h3>
            <div class="box2" id="con"></div>
            <div class="box2" id="con2"></div>
            <div class="box2 data">
                <p class="zuo">Products</p>
                <p class="you">
                    <span>下载</span>
                    <span>通知</span>
                </p>
                <table class="list">
                    <thead>
                        <tr>
                            <td>Produce</td>
                            <td>Price</td>
                            <td>Sales</td>
                            <td>More</td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Some Product</td>
                            <td>$13 USD</td>
                            <td>12000 Sold</td>
                            <td>🔍</td>
                        </tr>
                        <tr>
                            <td>Another Product</td>
                            <td>$29 USD</td>
                            <td>123234 Sold</td>
                            <td>🔍</td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="box2"></div>
        </div>
    </div>
</body>
</html>
<script src="https://cdn.bootcdn.net/ajax/libs/echarts/5.4.0/echarts.js"></script>
<script>
    var con = document.querySelector('#con')
    var con2 = document.querySelector('#con2')
    var e = echarts.init(con)
    var e2 = echarts.init(con2)
    // 第一个图
    e.setOption({
        title: {
            text: 'Visitors Over Time',
            left: '20',
            top: '20'
        },
        legend: { //图例
            top: 255,
        },
        xAxis: {
            data: ['18th', '20th', '22th', '24th', '26th', '28th', '30th']
        },
        yAxis: {
            splitLine: {
                show: true
            }
        },
        // 数据
        series: [
            // 折线图
            {
                name: 'This Week',
                type: 'line',
                data: [100, 120, 170, 165, 181, 175, 160],
                symbolSize: 8,
                symbol: 'circle',//圆点形状
                smooth: true,
                itemStyle: {
                    normal: {
                        color: '#7873f5'
                    }
                }
            },
            {
                name: 'Last Week',
                type: 'line',
                data: [60, 80, 70, 65, 80, 75, 105],
                symbolSize: 8,
                symbol: 'circle',//圆点形状
                smooth: true,
                itemStyle: {
                    normal: {
                        color: 'rgb(163, 162, 162)'
                    }
                }
            }
        ]
    })
    e2.setOption({
        title:{ //图表的标题
            text:'Sales Over Time',
            left: '20',
            top: '20',
        },
        legend:{ //图例
            bottom:20,
            right:10,
        },
        xAxis:{ //x轴设置
            data:['JUN','JUL','AUG','SEP','OCT','NOV','DEC']
        },
        yAxis:{ //y轴设置

        },
        series:[ //数据系列
            {
                name:'This year',
                type:'bar',
                data:[100,120,170,165,180,178,160] ,
                smooth:true, //是否平滑曲线显示
                itemStyle:{
                    normal:{
                        color:'dodgerblue', //折线颜色
                        lineStyle:{ width:2 }, //折现的宽度
                    }
                }
            },
            {
                name:'Last year',
                type:'bar',
                data:[60,80,70,65,80,78,100] ,
                smooth:true, //是否平滑曲线显示
                itemStyle:{
                    normal:{
                        color:'gray', //折线颜色
                        lineStyle:{ width:2 }, //折现的宽度
                    }
                }
            }
        ]
    });
</script>